<!DOCTYPE html>
<%= tag.html :lang => I18n.locale,
             :dir => dir,
             :data => { :bs_theme => current_user&.preferred_color_scheme(:site) } do %>
  <%= render :partial => "layouts/head" %>
  <%= tag.body :class => body_class,
               :data => { :map_theme => current_user&.preferred_color_scheme(:map, :site) } do %>
    <%= render :partial => "layouts/header" %>
    <%= render :partial => "layouts/content" %>
    <% if defined?(Settings.matomo) -%>
    <noscript><p><img src="<%= request.protocol %><%= Settings.matomo["location"] %>/matomo.php?idsite=<%= Settings.matomo["site"] %>" class="matomo" alt="" /></p></noscript>
    <% end -%>
  <% end %>
<% end %>
